import request from "@/utils/request";

export const getUserList = (params) => {
	return request({
		url:'/h5/user/list',
		method:'get',
		params:params
	})
}

export const getUserDetail = (id)=>{
	return request({
		url:`/h5/user/${id}`,
		method:'get'
	})
}
export const editUser = (data) => {
	return request({
		url:'/h5/user/edit',
		method:'put',
		data:data
	})
}
export const insertUser = (data)=>{
	return request({
		url:'/h5/user/add',
		method:'post',
		data:data
	})
}
export const deleteUser = (id) =>{
	return request({
		url:`/h5/user/${id}`,
		method:'delete'
	})
}